 package com.cxl.other.mode;
 
 import java.io.PrintStream;
 import java.util.Scanner;
 
 public class Yang
 {
   public void fun(int num)
   {
     int[][] m = new int[num][];
     for (int i = 0; i < m.length; i++) {
       m[i] = new int[i + 1];
       m[i][0] = 1;
       m[i][i] = 1;
       for (int j = 0; j < m[i].length - 1; j++)
       {
         if ((j >= 1) && (i > 1))
           m[i][j] = (m[(i - 1)][(j - 1)] + m[(i - 1)][j]);
       }
     }
     for (int i = 0; i < m.length; i++) {
       for (int j = 0; j < m[i].length; j++) {
         System.out.print(m[i][j]);
         System.out.print('\t');
       }
       System.out.println();
     }
   }
 
   public static void main(String[] args) { Scanner scan = new Scanner(System.in);
     int num = scan.nextInt();
     new Yang().fun(num);
   }
 }

/* Location:           E:\work\eclipse3.6_\workspace\design_pattern\
 * Qualified Name:     com.cxl.other.mode.Yang
 * JD-Core Version:    0.6.1
 */